function init()
{
	
}

//显示地址信息窗口  
function showLocationInfo(pt, rs)
{  
    var opts = {  
      width : 250,     //信息窗口宽度  
      height: 150,     //信息窗口高度  
      title : "当前位置"  //信息窗口标题  
    }  
    
    var addComp = rs.addressComponents;  
    var addr = "当前位置：" + addComp.province + ", " + addComp.city + ", " + addComp.district + ", " + addComp.street + ", " + addComp.streetNumber + "<br/>";  
    addr += "纬度: " + pt.lat + ", " + "经度：" + pt.lng;  
      
    var infoWindow = new BMap.InfoWindow(addr, opts);  //创建信息窗口对象  
    marker.openInfoWindow(infoWindow);  
}

function iploac(result)
{
    var cityName = result.name;
}
//搜索
function sear(result)
{
  var local = new BMap.LocalSearch(map, {
      renderOptions:{map: map}
  });

  local.search(result);
}